package com.example.demo.auth.service;

import java.awt.image.BufferedImage;

//验证码服务类
public interface SysCaptchaService {

    /**
     * 根据UUID生成验证码
     * @param uuid
     * @return
     */
    BufferedImage getCaptcha(String uuid);

    /**
     * 验证码校验
     * @param uuid
     * @param code
     * @return
     */
    boolean validate(String uuid, String code);
}
